home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgramD2.iso
/
Borland
/
Borland C++ V5.02
/
GDIDEMO.PAK
/
LINE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-06
|
1KB
|
42 lines
//----------------------------------------------------------------------------
// ObjectWindows
// Copyright (c) 1991, 1995 by Borland International, All Rights Reserved
//
// MoveToLineTo demo window header
//----------------------------------------------------------------------------
#if !defined(LINE_H)
#define LINE_H
#include "demobase.h"
// MoveToLineTo demo constants
const int MaxPoints = 15; // Number of points to be drawn
const int IconicPoints = 6; // Number of points to draw when iconized
struct TRPoint {
float X, Y;
};
class TMoveToLineToWindow : public TBaseDemoWindow {
public:
TMoveToLineToWindow();
void TimerTick();
void Paint(TDC& dc, bool, TRect&);
protected:
void EvSize(uint, TSize& Size);
private:
TRPoint Points[MaxPoints];
float Rotation; // in radians
int PointCount;
bool Iconized;
void RotatePoints();
DECLARE_CASTABLE;
DECLARE_RESPONSE_TABLE(TMoveToLineToWindow);
};
#endif // LINE_H